//
// Created by Zsir on 2025/7/25.
//

#ifndef THREAD_TASK_H
#define THREAD_TASK_H

#include "functional"

class Task
{
public:
    using Func = std::function<void(void *)>;

    Task(Func func,void* data);
    ~Task();

    void run();

    Func getFunc();
private:
    Func func_;
    void* data_;
};


#endif //THREAD_TASK_H
